﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace SimpleUnitity.Database
{
    public class SqlClientTool : DbTool
    {
        public SqlClientTool(SqlClientTool dbtool) : base(dbtool) { }

        public SqlClientTool(SqlConnection connection)
            : base(connection, new SqlDataAdapter(), null) { }

        public SqlClientTool(SqlConnection connection, SqlTransaction transaction)
            : base(connection, new SqlDataAdapter(), transaction) { }

        public SqlClientTool(string connectionString) :
            this(new SqlConnection(connectionString)) { }

        public override string StatementPrefix
        {
            get { return "["; }
        }

        public override string StatementSuffix
        {
            get { return "]"; }
        }
    }
}
